#include "stdafx.h"

DESCRIPTION_10_TEST_SUITE(RenderTargetTexture1DArrayViewDescription)

BOOST_FIXTURE_TEST_CASE(Default, TestRenderTargetTexture1DArrayViewDescription)
{
	BOOST_REQUIRE_EQUAL(D3D10_RTV_DIMENSION_TEXTURE1DARRAY, m_desc.ViewDimension);
	BOOST_REQUIRE_EQUAL(DXGI_FORMAT_UNKNOWN, m_desc.Format);
	BOOST_REQUIRE_EQUAL(0, m_desc.Texture1DArray.MipSlice);
	BOOST_REQUIRE_EQUAL(0, m_desc.Texture1DArray.FirstArraySlice);
	BOOST_REQUIRE_EQUAL(~0U, m_desc.Texture1DArray.ArraySize);
}

#define RENDER_TARGET_TEXTURE1D_ARRAY_VIEW_DESCRIPTION_TEST_CASE(type_, name_, value_) \
	DESCRIPTION_10_FIXTURE_TEST_CASE(name_##_, RenderTargetTexture1DArrayViewDescription, \
		type_, value_, Texture1DArray.name_)

RENDER_TARGET_TEXTURE1D_ARRAY_VIEW_DESCRIPTION_TEST_CASE(UINT, MipSlice, 2)
RENDER_TARGET_TEXTURE1D_ARRAY_VIEW_DESCRIPTION_TEST_CASE(UINT, FirstArraySlice, 2)
RENDER_TARGET_TEXTURE1D_ARRAY_VIEW_DESCRIPTION_TEST_CASE(UINT, ArraySize, 2)

BOOST_AUTO_TEST_SUITE_END()
